package uy.com.csi.gestpro.model.mantenimiento;

import java.io.Serializable;
import java.util.List;

import javax.persistence.*;

import uy.com.csi.gestpro.model.proyecto.GpInfrmeDrio;

/**
 * The persistent class for the gp_clma database table.
 * 
 */
@Entity
@Table(name = "gp_clma", schema="mantenimiento")
@NamedQuery(name = "GpClma.findAll", query = "SELECT g FROM GpClma g")
public class GpClma implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private Integer id;

	private String dscrpcion;

	// bi-directional many-to-one association to GpInfrmeDrio
	@OneToMany(mappedBy = "gpClma")
	private List<GpInfrmeDrio> gpInfrmeDrios;

	public GpClma() {
	}

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		GpClma other = (GpClma) obj;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}

	public String getDscrpcion() {
		return this.dscrpcion;
	}

	public void setDscrpcion(String dscrpcion) {
		this.dscrpcion = dscrpcion;
	}

	public List<GpInfrmeDrio> getGpInfrmeDrios() {
		return gpInfrmeDrios;
	}

	public void setGpInfrmeDrios(List<GpInfrmeDrio> gpInfrmeDrios) {
		this.gpInfrmeDrios = gpInfrmeDrios;
	}

}